<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:importAttribute />
<div id="${PORTLET_INSTANCE_ID}"
	class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
	<div class="portlet-header ui-widget-header ui-corner-all">
		<span class="ui-icon ui-icon-minusthick"></span><a>${title }</a>
	</div>
	<div class="portlet-content" style="height:${HEIGHT}">
	<%--
		<div id="dialog-confirm" title="Empty the recycle bin?">
			<p>
				<span class="ui-icon ui-icon-alert"
					style="float: left; margin: 0 7px 20px 0;"></span>These items will
				be permanently deleted and cannot be recovered. Are you sure?
			</p>
		</div>
		 --%>
		<div class="cacheContent">
			<jsp:include page="/goal/cache.action"></jsp:include>
		</div>

		</div>
	</div>
</div>
<script type="text/javascript">
<!--
	$(function() {
		$('.cacheImg').click(function(){
			var img = $(this);
			$.ajax({type : 'POST',	dataType : "json",url : 'goal/cache!deleteCacheByKey.action',data: 'cacheKey='+ $(this).attr('id'),
				error : function() {alert('请求失败');},
				success : function(data) { 
					if(data.state== 'S'){
						img.parents('tr').remove();
					}else{
						alert("Delete the cache by id Error! Please try again!");
					}
				}
			});
		});
	});
//-->
</script>
